Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericDictionaryAssertions<TCollection,TKey,TValue,TAssertions> Class / NotContainKeys Method / NotContainKeys(TKey[]) Method
The unexpected keys
In This Topic
    NotContainKeys(TKey[]) Method
    In This Topic
    Asserts that the dictionary does not contain any of the specified keys. Key comparison will honor the equality comparer of the dictionary when applicable.
    Syntax
    public AndConstraint<TAssertions> NotContainKeys( 
       params TKey[] unexpected
    )

    Parameters

    unexpected
    The unexpected keys
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also